package com.itany.mall.entity;

import java.io.Serializable;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.experimental.Accessors;

@Data
@NoArgsConstructor
@AllArgsConstructor
@Accessors(chain = true)
public class User extends MallData implements Cloneable, Serializable {
	private static final long serialVersionUID = 1L;
	// private Long id;
	private String name;
	private String password;
	private String phone;
	private String email;
	private Integer role;

	@Override
	public Object clone() {
		try {
			return super.clone();
		} catch (CloneNotSupportedException e) {
			e.printStackTrace();
			return null;
		}
	}

}
